package com.yejiarong.elasticsearch.api.bean.request;

import com.yejiarong.elasticsearch.api.bean.request.query.Query;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

/**
 * @author YeJR
 */
@Data
public class DeleteByQueryForm {

    /**
     * 索引
     */
    @NotBlank(message = "索引不能为空")
    private String index;

    /**
     * 查询条件
     */
    @Valid
    @NotEmpty(message = "查询条件不能为空")
    private List<Query> queries;
}
